module.exports = {
    publicPath: process.env.NODE_ENV === 'production'? '/miaomi-movie/': '/',
    outputDir: 'dist',  
    assetsDir: 'assets', //静态资源目录（js,css,img,fonts）
    css: {
        loaderOptions: {
          sass: {
            data: `
                     @import "@/assets/styles/sass/_variables.scss";
                     @import "@/assets/styles/sass/_mixin.scss";
                `
          }
        }
      },
    devServer: {
        // host: '192.168.43.248', // 真机测试局域网IP地址
        // host: '192.168.0.126',
        open : true,
        port: 8080,
        https: false,
        hotOnly: false,
        proxy: {
            '/api': {
                target: 'http://39.97.33.178',
                changeOrigin: true
            }
        }
    }
}